home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / ObjectTcl-1.1 / examples / Simple / Makefile < prev    next >
Encoding:
Makefile  |  1995-06-30  |  1.8 KB  |  69 lines

  1. #------------------------------------------------------------------------------
  2. # Configuration options.
  3. #------------------------------------------------------------------------------
  4.  
  5. # Built Source directory for Tcl relative to this directory or root.  Otcl
  6. # currently works with either Tcl 7.3 or Tcl 7.4b3.  This define maybe omitted
  7. # if the other TCL_* defines below are explictly set to the installed
  8. # locations.
  9. TCL_DIR         =       /usr/skunk/src/Tools/tcl-7.3
  10.  
  11. # The location of the Tcl public includes files (tcl.h)
  12. TCL_INCLDIR    =     ${TCL_DIR}
  13.  
  14. # The location of the Tcl private includes file (tclInt.h)
  15. TCL_SRCDIR    =     ${TCL_DIR}
  16.  
  17. # The location of the Tcl library (libtcl.a)
  18. TCL_LIBDIR    =     ${TCL_DIR}
  19.  
  20. OTCL_INCLDIR    =    ../..
  21.  
  22. OTCL_LIBS    =    ../../tclAppInit.o ../../libotcl.a
  23.  
  24. CXX        =     CC
  25. CXXFLAGS    =    -g -O
  26.  
  27. #------------------------------------------------------------------------------
  28. # Other definitions.
  29. #------------------------------------------------------------------------------
  30.  
  31. CXXINCLUDES    =     -I. \
  32.               -I$(TCL_INCLDIR) \
  33.               -I$(TCL_SRCDIR) \
  34.             -I$(OTCL_INCLDIR)
  35.  
  36. CDL        =     ../../cdl
  37.  
  38. EXAMPLE_OBJECTS    =    A.o \
  39.             A_cdl.o
  40.  
  41. EXAMPLE_HEADERS    =    A_cdl.H
  42.  
  43. TCL_LIBS    =    -L$(TCL_LIBDIR) -ltcl -lm
  44.  
  45. .SUFFIXES: .cdl .H .C
  46.  
  47. .C.o:
  48.             $(CXX) $(CXXFLAGS) $(CXXINCLUDES) -c $<
  49. .cdl.o:
  50.             $(CDL) -s $< $*.C
  51.             $(CXX) $(CXXFLAGS) $(CXXINCLUDES) -c $*.C
  52.             rm $*.C
  53.  
  54. .cdl.H:
  55.             $(CDL) -h $< $*.H
  56.  
  57. #------------------------------------------------------------------------------
  58. # Rules.
  59. #------------------------------------------------------------------------------
  60.  
  61. all:        examplesh
  62.  
  63. examplesh:    $(EXAMPLE_HEADERS) $(EXAMPLE_OBJECTS)
  64.         $(CXX) $(CXXFLAGS) $(CXXINCLUDES) $(LDFLAGS) -o examplesh \
  65.              $(EXAMPLE_OBJECTS) $(OTCL_LIBS) $(TCL_LIBS) -lsocket 
  66. clean:
  67.         rm -f *.o examplesh core *..dbx *_cdl.C \
  68.         *_cdl.H
  69.